<template>
  <div class="container">
    <div class="liveContainer">
      <div class="liveTitle">
        <h1>游戏直播</h1>
        <div class="liveText">
          <span>更多</span>
          <ArrowRight style="width: 1em; height: 1em; margin-right: 8px" />
        </div>
      </div>
      <div class="liveContext">
          <!-- 直播 -->
        <div class="liveVideo">
          <div class="liveImg">
            <img
              src="https://s2-10623.kwimgs.com/kimg/bs2/zt-image-host/ChYwOGQ0YmNlNjQ3MTBiZTkwYWVjNTA2EN7L1y8.jpg"
              alt=""
            />
            <div class="liveDesc">
              <h5>6W人观看LOL手游</h5>
              <div class="liveInfo">
                <User style="width: 1em; height: 1em; margin-right: 8px" />
                <span>875人在看</span>
              </div>
            </div>
          </div>
        </div>
        <!-- 直播列表 -->
        <div class="liveImgList">
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
          <div class="videoBox">
            <div class="videoImg">
              <img
                src="https://tx2.a.kwimgs.com/uhead/AB/2021/11/30/14/BMjAyMTExMzAxNDQ0NDFfNDg0NTYzNzMwXzg4MzM0NDIyNzlfbHY=.jpg"
                alt=""
              />
            </div>
            <div class="videoContext">
              <h5>
                 老白赏金12连败三星五费！ 
              </h5>
              <div class="videoInfo">
                <User
                  style="width: 1em; height: 1em; margin-right: 8px"
                />
                <span>43人在看</span>
              </div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "LiveDroadcast",
});
</script>

<script lang="ts" setup>
import { ArrowRight, User } from "@element-plus/icons";
</script>

<style lang="less" scoped>
// 内容盒子
.container {
  margin: 0 auto;
  width: 1126px;
//   margin-bottom: 200px;
}
// 标题
.liveTitle {
  height: 42px;
  line-height: 42px;
  display: flex;
  margin-bottom: 24px;
  h1 {
    margin: 0;
    margin-right: 24px;
  }
  .liveText {
    display: flex;
    align-items: center;
  }
}
// 视频
.liveContext {
  display: flex;
  .liveVideo {
    width: 565px;
    // height: 450px;
    // border: 1px solid;
    margin-right: 16px;
  }
  .liveImg {
      width: 565px;
      flex-shrink: 0;
    img {
      width: 100%;
      border-radius: 5px;
    }
    .liveDesc {
      padding-top: 16px;
      h5 {
        margin: 0;
        width: 159.5px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 15px;
      }
      .liveInfo {
        display: flex;
        margin-top: 5px;
        color: #999;
      }
    }
  }
  .liveImgList {
    width: 562px;
    // border: 1px solid;
    display: flex;
    flex-wrap: wrap;
    overflow: hidden;
    flex-shrink: 0;
    .videoBox{
      width: 170px;
      margin-right: 16px;
      margin-bottom: 46px;
      .videoImg{
        width: 100%;
        height: 108px;
        font-size: 0;
        overflow: hidden;
        position: relative;
        border-radius: 4px;
        img{
          width: 100%;
          position: absolute;
          top: -90px;
        }
      }
      .videoContext{
        padding-top: 16px;
        h5{
          margin: 0;
          width: 159.5px;
          overflow: hidden;
          white-space: nowrap;
          text-overflow: ellipsis;
          font-size: 15px;
        }
        .videoInfo{
          display: flex;
          margin-top: 5px;
          color: #999;
        }
      }
    }
  }
}
</style>
